package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.MallUserPropsRewardsDetail;
import com.sc.nft.entity.vo.UserPropsRewardsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface MallUserPropsRewardsDetailMapper extends BaseMapper<MallUserPropsRewardsDetail> {
    Page<UserPropsRewardsVO> getUserPropsRewardsSummaryPage(
            Page<UserPropsRewardsVO> page,
            @Param("startTime") Date startTime,
            @Param("endTime") Date endTime,
            @Param("userId") Long userId,
            @Param("daoId") Long daoId,
            @Param("propsIds") List<Long> propsIds
    );

    UserPropsRewardsVO getUserPropsRewardsSummary(
            @Param("startTime") Date startTime,
            @Param("endTime") Date endTime,
            @Param("userId") Long userId,
            @Param("daoId") Long daoId,
            @Param("propsIds") List<Long> propsIds
    );
}